package demo02practice;

public class Demo01 {
    public static void main(String[] args) {
        double a=0.5%0.6;
        System.out.println("a = " + a);
       char[] cha = {'i', 't', 'c', 'a', 's', 'a'};
        //将cha数组中第2个元素，复制到目标数组最后一位数组上
        System.arraycopy(cha, 1, cha, 5, 1);
        //遍历目标数组，在控制台输出字符串
        for (char c:cha) {
            System.out.print(c);
        }

    }
    }
